package com.genscript.ms.a.business.controller;

import com.genscript.ms.a.business.client.MsC;
import com.genscript.ms.a.business.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/a")
@Validated
public class IndexCtrl {
    @Autowired
    private MsC msc;

    @Autowired
    private IndexService indexService;

    @RequestMapping("/index")
    public String login() {
        return indexService.index();
    }

    @RequestMapping("/fromC")
    public String fromC() {
        return msc.c();
    }
}
